package com.jia.lidao.others.enity;

import com.jia.lidao.enity.Loan;
import com.jia.lidao.enity.Remittance;

import java.util.List;

/**
 * Created by 00029935 on 2017/12/8.
 */

public class OrderInfor {


    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1512696423
     * order : {"address":{"address_id":3,"consignee":"哈哈","phone":"15195951111","province_id":3,"city_id":236806,"county_id":236849,"street":"浪漫的土耳其","is_default":0,"province_name":"河北省","city_name":"张家口市","county_name":"桥东区"},"merchant":{"merchant_id":1,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/6a23d357c18c38731f4c72ae0874e1af.jpg","name":"测试店铺"},"id":13,"status":1,"status_name":"待付款","order_sn":"20171127100043501112","order_group_id":13,"member_id":4,"merchant_id":1,"shopkeeper_id":1,"coupon_id":0,"pay_status":0,"goods_count":1,"total_money":2,"payment_type":1,"payment_type_name":"支付宝支付","coupon_free_money":0,"promotion_free_money":0,"total_free_money":0,"pay_money":2,"created_time":"2017-11-27 02:09:33","order_goods":[{"order_goods_id":14,"goods_id":2,"quantity":1,"price":2,"goods_name":"超级金克拉1号","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2}],"payment_id":12}
     */

    public  int err_code;
    public  String err_msg;
    public int timestamp;
    public OrderBean order;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public OrderBean getOrder() {
        return order;
    }

    public void setOrder(OrderBean order) {
        this.order = order;
    }

    public static class OrderBean {
        /**
         * address : {"address_id":3,"consignee":"哈哈","phone":"15195951111","province_id":3,"city_id":236806,"county_id":236849,"street":"浪漫的土耳其","is_default":0,"province_name":"河北省","city_name":"张家口市","county_name":"桥东区"}
         * merchant : {"merchant_id":1,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/6a23d357c18c38731f4c72ae0874e1af.jpg","name":"测试店铺"}
         * id : 13
         * status : 1
         * status_name : 待付款
         * order_sn : 20171127100043501112
         * order_group_id : 13
         * member_id : 4
         * merchant_id : 1
         * shopkeeper_id : 1
         * coupon_id : 0
         * pay_status : 0
         * goods_count : 1
         * total_money : 2
         * payment_type : 1
         * payment_type_name : 支付宝支付
         * coupon_free_money : 0
         * promotion_free_money : 0
         * total_free_money : 0
         * pay_money : 2
         * created_time : 2017-11-27 02:09:33
         * order_goods : [{"order_goods_id":14,"goods_id":2,"quantity":1,"price":2,"goods_name":"超级金克拉1号","goods_pic":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","total_money":2}]
         * payment_id : 12
         */

        public AddressBean address;
        public MerchantBean merchant;
        public int id;
        public int status;
        public String status_name;
        public String order_sn;
        public int order_group_id;
        public int member_id;
        public int merchant_id;
        public int shopkeeper_id;
        public int coupon_id;
        public int pay_status;
        public int goods_count;
        public double total_money;
        public int payment_type;
        public String payment_type_name;
        public double coupon_free_money;
        public double promotion_free_money;
        public double total_free_money;
        public double pay_money;
        public String created_time;
        public int payment_id;
        public List<OrderGoodsBean> order_goods;
        public Remittance remittance;
        public Loan loan;
        public String pay_time;

        public AddressBean getAddress() {
            return address;
        }

        public void setAddress(AddressBean address) {
            this.address = address;
        }

        public MerchantBean getMerchant() {
            return merchant;
        }

        public void setMerchant(MerchantBean merchant) {
            this.merchant = merchant;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getStatus_name() {
            return status_name;
        }

        public void setStatus_name(String status_name) {
            this.status_name = status_name;
        }

        public String getOrder_sn() {
            return order_sn;
        }

        public void setOrder_sn(String order_sn) {
            this.order_sn = order_sn;
        }

        public int getOrder_group_id() {
            return order_group_id;
        }

        public void setOrder_group_id(int order_group_id) {
            this.order_group_id = order_group_id;
        }

        public int getMember_id() {
            return member_id;
        }

        public void setMember_id(int member_id) {
            this.member_id = member_id;
        }

        public int getMerchant_id() {
            return merchant_id;
        }

        public void setMerchant_id(int merchant_id) {
            this.merchant_id = merchant_id;
        }

        public int getShopkeeper_id() {
            return shopkeeper_id;
        }

        public void setShopkeeper_id(int shopkeeper_id) {
            this.shopkeeper_id = shopkeeper_id;
        }

        public int getCoupon_id() {
            return coupon_id;
        }

        public void setCoupon_id(int coupon_id) {
            this.coupon_id = coupon_id;
        }

        public int getPay_status() {
            return pay_status;
        }

        public void setPay_status(int pay_status) {
            this.pay_status = pay_status;
        }

        public int getGoods_count() {
            return goods_count;
        }

        public void setGoods_count(int goods_count) {
            this.goods_count = goods_count;
        }

        public double getTotal_money() {
            return total_money;
        }

        public void setTotal_money(double total_money) {
            this.total_money = total_money;
        }

        public int getPayment_type() {
            return payment_type;
        }

        public void setPayment_type(int payment_type) {
            this.payment_type = payment_type;
        }

        public String getPayment_type_name() {
            return payment_type_name;
        }

        public void setPayment_type_name(String payment_type_name) {
            this.payment_type_name = payment_type_name;
        }

        public double getCoupon_free_money() {
            return coupon_free_money;
        }

        public void setCoupon_free_money(double coupon_free_money) {
            this.coupon_free_money = coupon_free_money;
        }

        public double getPromotion_free_money() {
            return promotion_free_money;
        }

        public void setPromotion_free_money(double promotion_free_money) {
            this.promotion_free_money = promotion_free_money;
        }

        public double getTotal_free_money() {
            return total_free_money;
        }

        public void setTotal_free_money(double total_free_money) {
            this.total_free_money = total_free_money;
        }

        public double getPay_money() {
            return pay_money;
        }

        public void setPay_money(double pay_money) {
            this.pay_money = pay_money;
        }

        public String getCreated_time() {
            return created_time;
        }

        public void setCreated_time(String created_time) {
            this.created_time = created_time;
        }

        public int getPayment_id() {
            return payment_id;
        }

        public void setPayment_id(int payment_id) {
            this.payment_id = payment_id;
        }

        public List<OrderGoodsBean> getOrder_goods() {
            return order_goods;
        }

        public void setOrder_goods(List<OrderGoodsBean> order_goods) {
            this.order_goods = order_goods;
        }

        public static class AddressBean {
            /**
             * address_id : 3
             * consignee : 哈哈
             * phone : 15195951111
             * province_id : 3
             * city_id : 236806
             * county_id : 236849
             * street : 浪漫的土耳其
             * is_default : 0
             * province_name : 河北省
             * city_name : 张家口市
             * county_name : 桥东区
             */

            public int address_id;
            public String consignee;
            public String phone;
            public int province_id;
            public int city_id;
            public int county_id;
            public String street;
            public int is_default;
            public String province_name;
            public String city_name;
            public String county_name;

            public int getAddress_id() {
                return address_id;
            }

            public void setAddress_id(int address_id) {
                this.address_id = address_id;
            }

            public String getConsignee() {
                return consignee;
            }

            public void setConsignee(String consignee) {
                this.consignee = consignee;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public int getProvince_id() {
                return province_id;
            }

            public void setProvince_id(int province_id) {
                this.province_id = province_id;
            }

            public int getCity_id() {
                return city_id;
            }

            public void setCity_id(int city_id) {
                this.city_id = city_id;
            }

            public int getCounty_id() {
                return county_id;
            }

            public void setCounty_id(int county_id) {
                this.county_id = county_id;
            }

            public String getStreet() {
                return street;
            }

            public void setStreet(String street) {
                this.street = street;
            }

            public int getIs_default() {
                return is_default;
            }

            public void setIs_default(int is_default) {
                this.is_default = is_default;
            }

            public String getProvince_name() {
                return province_name;
            }

            public void setProvince_name(String province_name) {
                this.province_name = province_name;
            }

            public String getCity_name() {
                return city_name;
            }

            public void setCity_name(String city_name) {
                this.city_name = city_name;
            }

            public String getCounty_name() {
                return county_name;
            }

            public void setCounty_name(String county_name) {
                this.county_name = county_name;
            }
        }

        public static class MerchantBean {
            /**
             * merchant_id : 1
             * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/6a23d357c18c38731f4c72ae0874e1af.jpg
             * name : 测试店铺
             */

            public int merchant_id;
            public String thumb;
            public String name;

            public int getMerchant_id() {
                return merchant_id;
            }

            public void setMerchant_id(int merchant_id) {
                this.merchant_id = merchant_id;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }

        public static class OrderGoodsBean {
            /**
             * order_goods_id : 14
             * goods_id : 2
             * quantity : 1
             * price : 2
             * goods_name : 超级金克拉1号
             * goods_pic : https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png
             * total_money : 2
             */

            public int order_goods_id;
            public int goods_id;
            public int quantity;
            public double price;
            public String goods_name;
            public String goods_pic;
            public double total_money;
            //0 未评价
            public int commented;

            public int getOrder_goods_id() {
                return order_goods_id;
            }

            public void setOrder_goods_id(int order_goods_id) {
                this.order_goods_id = order_goods_id;
            }

            public int getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(int goods_id) {
                this.goods_id = goods_id;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public String getGoods_name() {
                return goods_name;
            }

            public void setGoods_name(String goods_name) {
                this.goods_name = goods_name;
            }

            public String getGoods_pic() {
                return goods_pic;
            }

            public void setGoods_pic(String goods_pic) {
                this.goods_pic = goods_pic;
            }

            public double getTotal_money() {
                return total_money;
            }

            public void setTotal_money(double total_money) {
                this.total_money = total_money;
            }
        }
    }
}
